home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / SCREEN / CURSES01 / minix / c / beep < prev    next >
Text File  |  1991-05-05  |  2KB  |  46 lines

  1. /****************************************************************/
  2. /*                                */
  3. /* Beep() and flash() routines of the PCcurses package        */
  4. /*                                */
  5. /****************************************************************/
  6. /* This version of curses is based on ncurses, a curses version    */
  7. /* originally written by Pavel Curtis at Cornell University.    */
  8. /* I have made substantial changes to make it run on IBM PC's,    */
  9. /* and therefore consider myself free to make it public domain.    */
  10. /*        Bjorn Larsson (...mcvax!enea!infovax!bl)    */
  11. /****************************************************************/
  12. /* 1.0:    Release:                    870515    */
  13. /****************************************************************/
  14. /* Modified to run under the MINIX operating system by Don Cope */
  15. /* These changes are also released into the public domain.      */
  16. /*                             900906  */
  17. /****************************************************************/
  18.  
  19. #include <curses.h>
  20. #include "curspriv.h"
  21.  
  22. /****************************************************************/
  23. /* Beep() sounds the terminal bell.                */
  24. /****************************************************************/
  25.  
  26. void    beep()
  27.   {
  28.   _cursesputc('\007',0);
  29.   } /* beep */
  30.  
  31. /****************************************************************/
  32. /* Flash() flashes the terminal screen.                */
  33. /****************************************************************/
  34.  
  35. void    flash()
  36.   {
  37. #ifndef MINIX
  38.   int i;
  39.   _cursesscroll(0,0,LINES-1,COLS-1,0,0x70);
  40.   for (i=0;i<10000;)
  41.     i++;
  42.   _cursesscroll(0,0,LINES-1,COLS-1,0,0x0);
  43.   wrefresh(curscr);
  44. #endif
  45.   } /* flash */
  46.